import React from 'react';
import { Router, Route, IndexRedirect, browserHistory } from 'react-router';
import PropTypes from 'prop-types';


import App from '../views/App';
import Other from '../views/Other';
import AsyncDemo from '../views/AsyncDemo';
import SyncDemo from '../views/SyncDemo';

console.log(browserHistory)
export const Routers = () => (
    <Router history={browserHistory}>
        <Route path="/" component={App}>
            <Route path="/asyncDemo" component={AsyncDemo} />
            <Route path="/syncDemo" component={SyncDemo} />
            <Route path="/other" component={Other} />
        </Route>
    </Router>
);

